<template>
    <TableComponent :table="table" />
</template>

<script>
import TableComponent from './table'
/* eslint-disable */
export default {
  name: 'HelloWorld',
  components: { TableComponent },
  data () {
    return {
      table: []
    }
  },
  created: function() {
    this.$http.get("/table/get").then(res=>{
      console.log(res)
      this.table = res.data.table;
    }).catch(res=>{
      console.log("err")
    });
  }
}
</script>
